﻿

<script type="text/javascript">


    function getSelText() {
        try {
            //var mytitle=window.external.menuarguments.document.title;
            var loc = window.external.menuArguments.document.URL;
            var txt = window.external.menuArguments.document.selection.createRange().text;
            File = 'C:\\VirtualNotebook\\OrganizeYourSearch.exe "' + txt + '" "' + loc + '"';
            WSH = new ActiveXObject("WScript.Shell");
            WSH.run(File);
        }
        catch (e) {
            alert(e);
        }
    }
    getSelText();

  </script>